﻿using System.Collections.ObjectModel;
using AvaloniaApplication1.Models;
using CommunityToolkit.Mvvm.ComponentModel;

namespace AvaloniaApplication1.ViewModels;

public sealed partial class CardPageViewModel : ViewModelBase
{
    [ObservableProperty]
    private ObservableCollection<CardItemModel> _item;

    public CardPageViewModel()
    {
        Item = new ObservableCollection<CardItemModel>();
        for (int i = 0; i < 10; i++)
        {
            Item.Add(new CardItemModel("Card title","Card content"));
        }
    }
} 